//引入 request 文件
import request from '@/pages/article/util/request.js'

//发布编辑的文章
export const saveArticle = (articleSaveParam) => {
	return request({
	        url: '/article/save',
	        method: 'post',
	        data: articleSaveParam
	})
}

//通过文章id加载文章详情
export const selectArticleById = (articleId) => {
	return request({
	        url: '/article/select/' + articleId,
	        method: 'get',
	})
}

//上传文章封面
// export const uploadArticlePhoto = (articleSaveParam) => {
// 	return request({
// 	        url: '/file/upload',
// 	        method: 'post',
// 	        data: articleSaveParam
// 	})
// }


